package com.fupan.Works;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig2 {
    @Bean //实例化一个简单队列
    public Queue worksQueue(){
        return new Queue("worksQueue");
    }
    // 重载方法中已经指定了 durable为true,也就是持久化.  this(name, true, false, false);
}